package com.bsj.media.tool.dto;

import lombok.Data;

import java.util.Objects;

@Data
public class FlowDto {

    private String id;

    private long flowNow;

    private long time;

    private String timeStr;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FlowDto flowDto = (FlowDto) o;
        return id.equals(flowDto.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
